package com.piece.blog.api.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.piece.core.framework.annotation.office.ExcelCellConvert;
import io.swagger.annotations.ApiModelProperty;

public class QuestionDTO {

    /**
     * 题目
     */
    @ApiModelProperty(value = "题目")
    @ExcelProperty(index = 0, value = "题目")
    private String title;

    /**
     * 题目类型
     */
    @ApiModelProperty(value = "题目类型", notes = "checkbox, radio, textarea")
    @ExcelProperty(index = 1, value = "类型")
    @ExcelCellConvert(convertFormat = "radio=单选,checkbox=多选,textarea=简答", combo = {"单选","多选","简答"})
    private String type;

    /**
     * 选项
     */
    @ApiModelProperty(value = "选项")
    @ExcelProperty(index = 2, value = "选项")
    private String options;

    /**
     * 答案
     */
    @ApiModelProperty(value = "答案")
    @ExcelProperty(index = 3, value = "答案")
    private String answer;

    /**
     * 分值
     */
    @ApiModelProperty(value = "分值")
    @ExcelProperty(index = 4, value = "分值")
    private int points;
}
